#ifndef PBPROMPT_HPP
#define PBPROMPT_HPP


/*--------------------------------------------------------------------------*/
class PegBitmapPrompt : public PegPrompt
{
    public:

        PegBitmapPrompt(const PegRect &Rect,
                        PEGINT StringId = 0, PEGUSHORT Id = 0,
                        PEGULONG Style = FF_NONE|TJ_LEFT|
                                         AF_TRANSPARENT|SP_ALWAYS);

        PegBitmapPrompt(const PEGCHAR *pText,
                        const PegRect &Rect,
                        PEGUSHORT Id = 0,
                        PEGULONG Style = FF_NONE|TJ_LEFT|
                                         AF_TRANSPARENT|SP_ALWAYS);

        virtual void Draw(const PegRect &Invalid);

        void SetAllBitmaps(PEGUINT NormalMap, PEGUINT SelectedMap,
                        PEGUINT LeftMap, PEGUINT RightMap);

        void SetBitmap(PEGINT Index, PEGUINT BitmapId);
        PEGINT GetBitmap(PEGINT Index) { return mBmpIds[Index]; }

        void SetWrapSpace(PEGINT Space) {mWrapSpace = Space;}
        PEGINT GetTxJustOffSet(void) {return mTextJustOffSet;}
        void SetTxJustOffSet(PEGINT val) {mTextJustOffSet = val;}

    protected:
        virtual PegRect GetTextRect(void);

        PEGINT mBmpIds[4];
        PEGINT mWrapSpace;
        PEGINT mTextJustOffSet;
};



#endif

